package com.dhemery.mack.actions;

import org.eclipse.core.runtime.IAdapterFactory;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.ui.IWorkbenchPage;

import com.dhemery.mack.adapters.ImageDescriptorSource;
import com.dhemery.mack.application.MackPlugin;
import com.dhemery.mack.model.Folder;
import com.dhemery.mack.model.Node;

public class AddFolderAction extends AddNodeAction {
		private static final String name = "Add Folder";
		public static final String ID = MackPlugin.COMMAND_ID_PREFIX + "AddFolder";
		private static final String imagePath = "icons/16/new_folder.png";

		public AddFolderAction(
			IWorkbenchPage page,
			TreeViewer viewer,
			IAdapterFactory factory,
			ImageDescriptorSource imageDescriptorSource) {
		super(name, ID, imagePath, page, viewer, factory, imageDescriptorSource);
	}

	@Override
	protected Node makeNewNode() {
		return new Folder();
	}
}
